Separate out usb gorp so it can be turned off more independently.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 10 Nov 2004 14:57:16 +0000 (14:57 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 10 Nov 2004 14:57:16 +0000 (14:57 +0000)
gpsbabel/Makefile

index 970258f55e57d0da43983c6f0bb86231cb43b2c6..70820dc64a33e68fc06bdeac23306c8e5ebca7b9 100644 (file)
@@ -3,12 +3,13 @@
 # type that is XML-ish (i.e. gpx or geocaching.com's/loc) you can uncomment
 # INHIBIT_EXPAT and coment out LIBEXPAT on just to get a build working quickly.
 # INHIBIT_EXPAT=-DNO_EXPAT
-LIBEXPAT=-lexpat -lusb # -lefence
+LIBEXPAT=-lexpat #-lefence
 
 # USB may required non-standard libraries (like libusb) be installed
 # and may not be available on all OSes.  Uncomment this to remove the key
 # parts of USB from the build.
 INHIBIT_USB=#-DNO_USB
+LIBUSB=-lusb
 
 #
 # Enable either or both of these as you wish.
@@ -54,7 +55,7 @@ OBJS = main.o $(LIBOBJS)
 all: gpsbabel
 
 gpsbabel: $(OBJS)
-       $(CC) $(CFLAGS) $(OBJS) -o gpsbabel $(LIBEXPAT) -lm
+       $(CC) $(CFLAGS) $(OBJS) -o gpsbabel $(LIBEXPAT) $(LIBUSB) -lm
 
 main.o:
        $(CC) -c $(CFLAGS) -DVERSION=\"$(VERSIOND)\" $<
@@ -108,7 +109,7 @@ release:
        curl -u anonymous:anonymous --upload-file /tmp/gpsbabel-$(VERSIOND).zip ftp://upload.sf.net/incoming/
 
 mac-build:
-       make LIBEXPAT=/sw/lib/libexpat.a EXTRA_CFLAGS="-I/sw/include"
+       make LIBEXPAT=/sw/lib/libexpat.a EXTRA_CFLAGS="-I/sw/include" LIBUSB= INHIBIT_USB=-DNO_USB
 
 mac-release:
        mkdir -p usr/bin usr/share/gpsbabel/doc